#include<iostream>

using namespace std;

//正整数的进制转化
int main() {
    int x = -6;
    int b[32];
    for (int i = 0; i < 32; i++) {
        b[i] = x % 2;
        x /= 2;
    }
    for (int i = 31; i >= 0; i--) {
        if ((i + 1) % 8 == 0)cout << " ";
        cout << b[i];
    }
    cout << endl;

    return 0;

}